<?php
/**
 * Created by JetBrains PhpStorm.
 * User: lucky
 * Date: 10.05.13
 * Time: 22:05
 * To change this template use File | Settings | File Templates.
 */
require_once("includes/Login.inc");
$login = new Login();
if ($login->IsLogged())
{
   $login->LogOut();
}
if(isset($_COOKIE['page']))
   header("Location:".$_COOKIE["page"]);